<template>
  <div class="addr">
    <van-address-edit
      :area-list="areaList"
      show-postal
      :show-delete="is_edit"
      show-set-default
      :area-columns-placeholder="['请选择', '请选择', '请选择']"
      @save="onSave"
      @delete="onDelete"
    />
  </div>
</template>

<script>
import areaList from "@/utils/area.js";
import { mixins } from "@/utils/mixins";
export default {
  mixins: [mixins],
  data() {
    return {
      areaList,
      searchResult: [],
    };
  },
  computed: {
    is_edit() {
      return this.$route.query.type == 'add' ? false : true
    }
  },
  mounted() {},
  methods: {
    onSave() {},
    onDelete(e) {
      console.log(e);
    }
  }
};
</script>

<style lang="less" scoped>
</style>